<?php
/**
 * 必须使用二维数组
 */
return [
    'auth_menu' => [
        [
            'pid'   => '18',
            'title' => '知识库管理',
            'icon'  => 'layui-icon-read',
            'type'  => 1,
            'node'  => '/app/book/admin/book/index',
            'sort'  => 100
        ],
    ],
    'auth_rule' => [
        [
            'type'    => 1,
            'node'    => '/app/book/admin/book',
            'title'   => '知识库管理',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/book/admin/book/index',
            'title'   => '知识库列表',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/book/admin/book/add',
            'title'   => '添加知识库',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/book/admin/book/edit',
            'title'   => '编辑知识库',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/book/admin/book/delete',
            'title'   => '删除知识库',
            'is_auth' => 1,
        ],
        [
            'type'    => 1,
            'node'    => '/app/book/admin/doc',
            'title'   => '文档管理',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/book/admin/doc/index',
            'title'   => '文档列表',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/book/admin/doc/add',
            'title'   => '添加文档',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/book/admin/doc/edit',
            'title'   => '编辑文档',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/book/admin/doc/delete',
            'title'   => '删除文档',
            'is_auth' => 1,
        ],
    ]
];
